import 'dart:convert';
import 'package:flutter_app/generated/json/base/json_field.dart';
import 'package:flutter_app/generated/json/problem_report_type_entity.g.dart';

@JsonSerializable()
class ProblemReportTypeEntity {
  List<ProblemTypeList>? problemTypeList;
  List<ProblemTypeList>? taskTypeList;

  ProblemReportTypeEntity();

  factory ProblemReportTypeEntity.fromJson(Map<String, dynamic> json) => $ProblemReportTypeEntityFromJson(json);

  Map<String, dynamic> toJson() => $ProblemReportTypeEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ProblemTypeList {
  List<ListChildTypeList>? childTypeList;
  String? code;
  String? id;
  String? name;
  String? pid;
  String? problemCount;
  String? type;

  ProblemTypeList();

  factory ProblemTypeList.fromJson(Map<String, dynamic> json) => $ProblemTypeListFromJson(json);

  Map<String, dynamic> toJson() => $ProblemTypeListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ListChildTypeList {
  String? code;
  String? id;
  String? name;
  String? pid;
  String? problemCount;

  ListChildTypeList();

  factory ListChildTypeList.fromJson(Map<String, dynamic> json) => $ListChildTypeListFromJson(json);

  Map<String, dynamic> toJson() => $ListChildTypeListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
